package com.px.project.module.it.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.px.project.module.it.entity.ItemEquipment;
import com.px.project.module.it.service.IItemEquipmentService;
import com.px.project.module.it.mapper.ItemEquipmentMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.px.common.dto.BaseQueryDto;
import org.springframework.stereotype.Service;

/**
 * 分项机械设备信息 服务实现类
 *
 * @author 品讯科技
 * @since 2023-11-08
 */
@Service
public class ItemEquipmentServiceImpl extends ServiceImpl<ItemEquipmentMapper, ItemEquipment> implements IItemEquipmentService {

    @Override
    public Page<ItemEquipment> page(BaseQueryDto<ItemEquipment> pageDto, ItemEquipment itemEquipment) {
        LambdaQueryWrapper<ItemEquipment> queryWrapper = Wrappers.lambdaQuery();
        queryWrapper.setEntity(itemEquipment);
        return page(pageDto.toPage(), queryWrapper);
    }
    
}
